/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.web.entity.WxAgentsLevel;
import com.jeeplus.modules.web.mapper.WxAgentsLevelMapper;

/**
 * 代理商层级Service
 * @author zxlong
 * @version 2018-01-09
 */
@Service
@Transactional(readOnly = true)
public class WxAgentsLevelService extends CrudService<WxAgentsLevelMapper, WxAgentsLevel> {

	@Autowired
	WxAgentsLevelMapper mapper;

	/**
	 * 根据ID获取代理商层级信息
	 */
	public WxAgentsLevel get(String id) {
		return super.get(id);
	}

	/**
	 * 获取代理商层级列表，支持条件查询
	 */
	public List<WxAgentsLevel> findList(WxAgentsLevel wxAgents) {
		return super.findList(wxAgents);
	}
	/**
	 * 查询所有代理商层级列表
	 * @return
	 */
	public List<WxAgentsLevel> getAgentsLevelList() {
		return mapper.getAgentsLevelList();
	}


	@Transactional(readOnly = false)
	public void save(WxAgentsLevel wxAgentsLevel) {
		super.save(wxAgentsLevel);
	}

	@Transactional(readOnly = false)
	public void delete(WxAgentsLevel wxAgentsLevel) {
		super.delete(wxAgentsLevel);
	}

}